package test1225;

public class Test07 {
    public static void m07(int[] arr,int[] brr){
        int crr[] = new int[arr.length+brr.length];
        for(int i=0;i<arr.length;i++){
            crr[i] = arr[i];
        }
        for(int i=0;i<brr.length;i++){
            crr[arr.length+i] = brr[i];
        }
        boolean m = false;
        for(int i=0;i<arr.length;i++){
            for(int j=i+1;j<crr.length;j++){
                if(crr[i]==crr[j]){
                    m = true;
                    break;
                }
            }
            if(m==false){
                System.out.println(crr[i]);
            }
        }
    }
    public static void main(String[] args) {
        // 打印arr与brr的差集
        int[] arr = {1,2,3,4,5};
        int[] brr = {3,4,5,6,7};
        m07(arr, brr);
    }
}

